<?php /* Smarty version 2.6.26, created on 2013-09-26 15:48:07
         compiled from index.html */ ?>
<!DOCTYPE html>
<html>
      <head>
            <title></title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      </head>
      <body>
            <h1>
                  <a href="<?php echo $this->_tpl_vars['web']; ?>
?c=db&m=add">添加</a>
            </h1>
            <table width="600" border="1">
                  <tr>
                        <td>学生名称</td>
                        <td>操作</td>
                  </tr>
                  <?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
                  <tr>
                        <td><?php echo $this->_tpl_vars['data'][$this->_sections['n']['index']]['sname']; ?>
</td>
                        <td>
                              <a href="<?php echo $this->_tpl_vars['web']; ?>
?c=db&m=del&sid=<?php echo $this->_tpl_vars['data'][$this->_sections['n']['index']]['sid']; ?>
">删除</a>
                              <a href="<?php echo $this->_tpl_vars['web']; ?>
?c=db&m=edit&sid=<?php echo $this->_tpl_vars['data'][$this->_sections['n']['index']]['sid']; ?>
">修改</a>
                        </td>
                  </tr>
                  <?php endfor; endif; ?>
            </table>
      </body>
</html>